// const qing = {
//   name: '庆玲',
//   age: 18,
//   career: 'corder'
// }

// const feng = {
//   name: '凤',
//   age: 18,
//   career: 'AIGC'
// }


// 用构造函数批量化生产实例对象
// 开放（属性值不同）封闭（属性一样）

function Coder(name, age) {
  this.name = name
  this.age = age
  this.career = 'corder'
  this.work = ['写代码', '改bug', '摸鱼']
}

function Product(name ,age) {
  this.name = name
  this.age = age
  this.career = 'product'
  this.work = ['做需求', '定会议室', '催更']
}

function User(name, age, career) {
  this.name = name
  this.age = age
  this.career = career
}

const user = new User(name, age, career)
